package com.tdkj.model.enterprisezone;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.user.BeanUser;

@Entity
@Table(name = "e_product")
public class BeanEnterpriseProduct extends BaseEntity{

	// Fields
	//产品标题
	private String title ;
	//关键字
	private String keyWord ;
	//产品内容
	private String content;
	private String image;
	//发布时间
	private Timestamp postTime;
	//飘彩;
	private String floatColor ;
	//飘彩时间
	private String floatColorTime ;
	//点击次数
	private Integer clickNum = 0;
	//审核状态
	private String examineState = "未审核";
	//企业
	private BeanEnterprise enterprise;
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getKeyWord() {
		return keyWord;
	}
	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Timestamp getPostTime() {
		return postTime;
	}
	public void setPostTime(Timestamp postTime) {
		this.postTime = postTime;
	}
	public String getFloatColor() {
		return floatColor;
	}
	public void setFloatColor(String floatColor) {
		this.floatColor = floatColor;
	}
	public String getFloatColorTime() {
		return floatColorTime;
	}
	public void setFloatColorTime(String floatColorTime) {
		this.floatColorTime = floatColorTime;
	}
	public Integer getClickNum() {
		return clickNum;
	}
	public void setClickNum(Integer clickNum) {
		this.clickNum = clickNum;
	}
	public String getExamineState() {
		return examineState;
	}
	public void setExamineState(String examineState) {
		this.examineState = examineState;
	}
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "enterprise_id", nullable = false)
	public BeanEnterprise getEnterprise() {
		return enterprise;
	}
	public void setEnterprise(BeanEnterprise enterprise) {
		this.enterprise = enterprise;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	
}